package bigdata.backend.meta.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("doris_table_meta")
public class DorisTableMeta {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    private Long datasourceId;
    private String tableName;
    private String tableComment;
    private String tableType;
    private Integer bucketNum;
    private Integer replicationNum;
    private String keyColumns;
    private String partitionInfo;
    private String bucketColumns;
    private String properties;

    // 添加自动填充注解
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    private String deleteFlag="0";
}
